#pragma once
#include "audionode.h"
class CWavePlayer :
	public CAudioNode
{
public:
	CWavePlayer(void);
	~CWavePlayer(void);

	virtual void Start( void );
	virtual bool Generate( void );

	void SetSamples( short *aSamplePtr, int aNumSamples ) { mSamples = aSamplePtr; mNumSamples = aNumSamples; }
	void SetPlaybackSpeed( double aNumHalfSteps );

private:

	short *mSamples;
	int mNumSamples;
	double mPosition;
	double mSpeed;

};

